package com.emit.security;

import com.emit.domain.SysPermission;
import lombok.Data;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;
import java.util.List;

/**
 * my user
 *
 * @author zhangchao
 * @version 1.0.0
 * @date 2021-02-28
 */
@Data
public class MyUserView extends User {
    public MyUserView(String username, String password, Long userId, List<SysPermission> sysRoleList, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);

    }

    public MyUserView(String username, String password, boolean enabled, boolean accountNonExpired, boolean credentialsNonExpired, boolean accountNonLocked, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    }

}
